package application.Commands.StreamCommands
{
	import application.BallFacade;
	
	import org.gof.application.SetByAppNS;
	import org.gof.application.AppNS;
	import org.gof.application.BaseAppFacade;
	import org.gof.application.BaseCommand;
	
	use namespace AppNS;
	use namespace SetByAppNS;
	public class StartCmd extends BaseCommand
	{
		private var app:BallFacade;
		
		public function StartCmd()
		{
		}
		
		SetByAppNS override function set application(a:BaseAppFacade):void
		{
			super.application = a;
			app = _app as BallFacade;
		}
		
		public function execute():void
		{
			app.gameStreamMed.startStream();
			app.streamWPxy.isStarted = true;
			app.streamWPxy.isPlayingNotPaused = true;
		}
	}
}